function showlocation(tbl){
	let data=new ArrayList();
	let MacLists=tbl.MacLists
	let user_id="0";
	let data={}
	if(isEmpty(tbl.user_id)){
		user_id=tbl.user_id
	}
	
	let MacLists2_1={}
	let MacLists2_2={}
	let MacLists2_3={}
	if(MacLists!=null){
		MacLists.forEach(x=>{
			if(x.local!="00"){
				if(x.local.substring(0,1)=="1"){
					MacLists2_1={"mac":x.mac,"local":x.local}
				}
				if(x.local.substring(0,1)=="2"){
					MacLists2_2={"mac":x.mac,"local":x.local}			
				}
				if(x.local.substring(0,1)=="3"){
					MacLists2_3={"mac":x.mac,"local":x.local}
				}
			}
		})
		if(!isEmpty(MacLists2_1.mac)){
			let app=dao.fetch("select info_uuid,app_id,info_mac from cmf_app_info",
			Cnd.where("info_mac","=",MacLists2_1.mac))
			let sub=dao.fetch("cmf_app_subject",Cnd.where("info_uuid","=",app.info_uuid))
			if(sub!=null){
				let coor=sub.subject_coor.split("/");
				MacLists2_1.x=coor[0]
				MacLists2_1.y=coor[1]
			}
			sattr(MacLists2_1.mac+user_id, MacLists2_1);
			data=MacLists2_1;
			attr("return",{"error":200,"message":"success","data":data})
		}else if(!isEmpty(MacLists2_2.mac)){
			let app=dao.fetch("select info_uuid,app_id,info_mac from cmf_app_info",
					Cnd.where("info_mac","=",MacLists2_2.mac))
					let sub=dao.fetch("cmf_app_subject",Cnd.where("info_uuid","=",app.info_uuid))
					if(sub!=null){
						let coor=sub.subject_coor.split("/");
						MacLists2_2.x=coor[0]
						MacLists2_2.y=coor[1]
					}
			sattr(MacLists2_2.mac+user_id, MacLists2_2);
			data=MacLists2_2;
			attr("return",{"error":200,"message":"success","data":data})
		}else if(!isEmpty(MacLists2_3.mac)){
			let app=dao.fetch("select info_uuid,app_id,info_mac from cmf_app_info",
					Cnd.where("info_mac","=",MacLists2_3.mac))
					let sub=dao.fetch("cmf_app_subject",Cnd.where("info_uuid","=",app.info_uuid))
					if(sub!=null){
						let coor=sub.subject_coor.split("/");
						MacLists2_3.x=coor[0]
						MacLists2_3.y=coor[1]
					}
			sattr(MacLists2_3.mac+user_id, MacLists2_3);
			data=MacLists2_3;
			attr("return",{"error":200,"message":"success","data":data})
		}else{
			data={
				    "mac": "",
				    "local": "",
				    "x":"",
				    "y":"",
				    "user_id":user_id
				  }
			attr("return",{"error":201,"message":"数据获取失败","data":data})
		}
	}else{
		data={
			    "mac": "",
			    "local": "",
			    "x":"",
			    "y":"",
			    "user_id":user_id
			  }
		attr("return",{"error":201,"message":"数据获取失败","data":data})
	}
	return "json"
}